<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:h="http://java.sun.com/jsf/html">
	
	<h:head>	
		<title>Miagetest-JSF</title>
	</h:head>
	
	<h:body>
		<h1>Miagetest-JSF</h1>
		
		<ui:include src="infoSession.xhtml" />
		
		<ui:include src="menu.xhtml" />
		
		<h:outputText value="#{mainBean.message}" />
		
		<!-- Selon la page demandée, on va appeler un xhtml différent -->	
		<ui:include src="#{mainBean.page}.xhtml" />
		
		<!-- <c:choose>
			<c:when test="${page == 'listeClients'}"><ui:include src="listeClients.xhtml" /></c:when>
			<c:when test="${page == 'listeCategories'}"><ui:include src="listeCategories.xhtml" /></c:when>
			<c:when test="${page == 'creerClientForm'}"><ui:include src="creerClientForm.xhtml" /></c:when>
	
			<c:otherwise>
	        	default
	        </c:otherwise>
		</c:choose> -->
	
		<!-- <h:panelGroup rendered="#{action.page == 'listeClients'}"><ui:include src="listeClients.xhtml" /></h:panelGroup>
		<h:panelGroup rendered="#{action.page == 'listeCategories'}"><ui:include src="listeCategories.xhtml" /></h:panelGroup>
		<h:panelGroup rendered="#{action.page == 'creerClientForm'}"><ui:include src="creerClientForm.xhtml" /></h:panelGroup> -->
	
	</h:body>
</html>